package com.smart.community.user.dto;

import java.time.LocalDate;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 新增物业公司用户DTO
 * 
 * @author Wu.Liang
 * @since 2025-01-30
 */
@Data
@Schema(description = "新增物业公司用户DTO")
public class AddPropertyCompanyUserDTO {

    @Schema(description = "物业公司ID", required = true)
    @NotNull(message = "物业公司ID不能为空")
    private Long propertyCompanyId;

    @Schema(description = "用户名", required = true)
    @NotBlank(message = "用户名不能为空")
    private String username;

    @Schema(description = "真实姓名", required = true)
    @NotBlank(message = "真实姓名不能为空")
    private String realName;

    @Schema(description = "手机号", required = true)
    @NotBlank(message = "手机号不能为空")
    private String phone;

    @Schema(description = "邮箱")
    private String email;

    @Schema(description = "用户类型", required = true)
    @NotBlank(message = "用户类型不能为空")
    private String userType;

    @Schema(description = "职位")
    private String position;

    @Schema(description = "部门")
    private String department;

    @Schema(description = "员工编号")
    private String employeeNo;

    @Schema(description = "入职日期")
    private LocalDate joinDate;

    @Schema(description = "备注")
    private String remark;
    
    @Schema(description = "角色ID")
    private Long roleId;
}
